<div class="abiturients view">
<h2><?php  __('Abiturient');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Lastname'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['lastname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Firstname'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['firstname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Surname'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['surname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Photo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['photo']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gender'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($abiturient['Gender']['name'], array('controller' => 'genders', 'action' => 'view', $abiturient['Gender']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Birthdate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['birthdate']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Citizenship'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($abiturient['Citizenship']['name'], array('controller' => 'citizenships', 'action' => 'view', $abiturient['Citizenship']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Passport Ser'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['passport_ser']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Passport Num'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['passport_num']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Passport Data'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['passport_data']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Passport Birthplace'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['passport_birthplace']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Region'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($abiturient['Region']['name'], array('controller' => 'regions', 'action' => 'view', $abiturient['Region']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Adress'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['adress']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Schoolflanguage'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($abiturient['Schoolflanguage']['name'], array('controller' => 'schoolflanguages', 'action' => 'view', $abiturient['Schoolflanguage']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Schoolgraduated'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['schoolgraduated']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Educationdoctype'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($abiturient['Educationdoctype']['name'], array('controller' => 'educationdoctypes', 'action' => 'view', $abiturient['Educationdoctype']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Originaleducationdoc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['originaleducationdoc']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Educationdocdata'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['educationdocdata']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phone'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['phone']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mobile'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['mobile']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Inn'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['inn']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Insurance'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['insurance']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Pension Certificate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['pension_certificate']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Inoculations'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['inoculations']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Moreinfo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['moreinfo']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Prepared'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['prepared']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Approved'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['approved']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Enrolled'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['enrolled']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Canceled'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['canceled']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $abiturient['Abiturient']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Abiturient', true), array('action' => 'edit', $abiturient['Abiturient']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Abiturient', true), array('action' => 'delete', $abiturient['Abiturient']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $abiturient['Abiturient']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Abiturients', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Abiturient', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Genders', true), array('controller' => 'genders', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Gender', true), array('controller' => 'genders', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Citizenships', true), array('controller' => 'citizenships', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Citizenship', true), array('controller' => 'citizenships', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Regions', true), array('controller' => 'regions', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Region', true), array('controller' => 'regions', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Schoolflanguages', true), array('controller' => 'schoolflanguages', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Schoolflanguage', true), array('controller' => 'schoolflanguages', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Educationdoctypes', true), array('controller' => 'educationdoctypes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Educationdoctype', true), array('controller' => 'educationdoctypes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Contracts', true), array('controller' => 'contracts', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Contract', true), array('controller' => 'contracts', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Relatives', true), array('controller' => 'relatives', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Relative', true), array('controller' => 'relatives', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Results', true), array('controller' => 'results', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Result', true), array('controller' => 'results', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Selectedprofessions', true), array('controller' => 'selectedprofessions', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Selectedprofession', true), array('controller' => 'selectedprofessions', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Targetingintakes', true), array('controller' => 'targetingintakes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Targetingintake', true), array('controller' => 'targetingintakes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Prioritets', true), array('controller' => 'prioritets', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Prioritet', true), array('controller' => 'prioritets', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Contracts');?></h3>
	<?php if (!empty($abiturient['Contract'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Contracttype Id'); ?></th>
		<th><?php __('Abiturient Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($abiturient['Contract'] as $contract):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $contract['id'];?></td>
			<td><?php echo $contract['contracttype_id'];?></td>
			<td><?php echo $contract['abiturient_id'];?></td>
			<td><?php echo $contract['created'];?></td>
			<td><?php echo $contract['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'contracts', 'action' => 'view', $contract['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'contracts', 'action' => 'edit', $contract['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'contracts', 'action' => 'delete', $contract['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $contract['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Contract', true), array('controller' => 'contracts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Relatives');?></h3>
	<?php if (!empty($abiturient['Relative'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Relativestype Id'); ?></th>
		<th><?php __('Abiturient Id'); ?></th>
		<th><?php __('Passport Data'); ?></th>
		<th><?php __('Fio'); ?></th>
		<th><?php __('Job'); ?></th>
		<th><?php __('Jobstatus'); ?></th>
		<th><?php __('Phone'); ?></th>
		<th><?php __('Mobile'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Adress'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($abiturient['Relative'] as $relative):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $relative['id'];?></td>
			<td><?php echo $relative['relativestype_id'];?></td>
			<td><?php echo $relative['abiturient_id'];?></td>
			<td><?php echo $relative['passport_data'];?></td>
			<td><?php echo $relative['fio'];?></td>
			<td><?php echo $relative['job'];?></td>
			<td><?php echo $relative['jobstatus'];?></td>
			<td><?php echo $relative['phone'];?></td>
			<td><?php echo $relative['mobile'];?></td>
			<td><?php echo $relative['email'];?></td>
			<td><?php echo $relative['adress'];?></td>
			<td><?php echo $relative['created'];?></td>
			<td><?php echo $relative['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'relatives', 'action' => 'view', $relative['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'relatives', 'action' => 'edit', $relative['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'relatives', 'action' => 'delete', $relative['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $relative['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Relative', true), array('controller' => 'relatives', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Results');?></h3>
	<?php if (!empty($abiturient['Result'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Resulttype Id'); ?></th>
		<th><?php __('Subject Id'); ?></th>
		<th><?php __('Abiturient Id'); ?></th>
		<th><?php __('Year'); ?></th>
		<th><?php __('Data'); ?></th>
		<th><?php __('Score'); ?></th>
		<th><?php __('Fbasescore'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($abiturient['Result'] as $result):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $result['id'];?></td>
			<td><?php echo $result['resulttype_id'];?></td>
			<td><?php echo $result['subject_id'];?></td>
			<td><?php echo $result['abiturient_id'];?></td>
			<td><?php echo $result['year'];?></td>
			<td><?php echo $result['data'];?></td>
			<td><?php echo $result['score'];?></td>
			<td><?php echo $result['fbasescore'];?></td>
			<td><?php echo $result['created'];?></td>
			<td><?php echo $result['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'results', 'action' => 'view', $result['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'results', 'action' => 'edit', $result['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'results', 'action' => 'delete', $result['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $result['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Result', true), array('controller' => 'results', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Selectedprofessions');?></h3>
	<?php if (!empty($abiturient['Selectedprofession'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Abiturient Id'); ?></th>
		<th><?php __('Profession Id'); ?></th>
		<th><?php __('Learningform Id'); ?></th>
		<th><?php __('Learningtype Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($abiturient['Selectedprofession'] as $selectedprofession):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $selectedprofession['id'];?></td>
			<td><?php echo $selectedprofession['abiturient_id'];?></td>
			<td><?php echo $selectedprofession['profession_id'];?></td>
			<td><?php echo $selectedprofession['learningform_id'];?></td>
			<td><?php echo $selectedprofession['learningtype_id'];?></td>
			<td><?php echo $selectedprofession['created'];?></td>
			<td><?php echo $selectedprofession['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'selectedprofessions', 'action' => 'view', $selectedprofession['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'selectedprofessions', 'action' => 'edit', $selectedprofession['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'selectedprofessions', 'action' => 'delete', $selectedprofession['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $selectedprofession['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Selectedprofession', true), array('controller' => 'selectedprofessions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Targetingintakes');?></h3>
	<?php if (!empty($abiturient['Targetingintake'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Tgintakeorg Id'); ?></th>
		<th><?php __('Abiturient Id'); ?></th>
		<th><?php __('Region Id'); ?></th>
		<th><?php __('Facultet Id'); ?></th>
		<th><?php __('Profession Id'); ?></th>
		<th><?php __('Learningform Id'); ?></th>
		<th><?php __('Learningtype Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($abiturient['Targetingintake'] as $targetingintake):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $targetingintake['id'];?></td>
			<td><?php echo $targetingintake['tgintakeorg_id'];?></td>
			<td><?php echo $targetingintake['abiturient_id'];?></td>
			<td><?php echo $targetingintake['region_id'];?></td>
			<td><?php echo $targetingintake['facultet_id'];?></td>
			<td><?php echo $targetingintake['profession_id'];?></td>
			<td><?php echo $targetingintake['learningform_id'];?></td>
			<td><?php echo $targetingintake['learningtype_id'];?></td>
			<td><?php echo $targetingintake['created'];?></td>
			<td><?php echo $targetingintake['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'targetingintakes', 'action' => 'view', $targetingintake['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'targetingintakes', 'action' => 'edit', $targetingintake['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'targetingintakes', 'action' => 'delete', $targetingintake['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $targetingintake['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Targetingintake', true), array('controller' => 'targetingintakes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Prioritets');?></h3>
	<?php if (!empty($abiturient['Prioritet'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($abiturient['Prioritet'] as $prioritet):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $prioritet['id'];?></td>
			<td><?php echo $prioritet['name'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'prioritets', 'action' => 'view', $prioritet['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'prioritets', 'action' => 'edit', $prioritet['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'prioritets', 'action' => 'delete', $prioritet['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $prioritet['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Prioritet', true), array('controller' => 'prioritets', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
